﻿using DataAccess;
using KhoaLuan.Utils;
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KhoaLuan.MainSys.Manager.GroupUser
{
    public partial class AddNewGroup_User : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            show_GroupId();
            show_UserID();
        }
        tbGroup_Proxy pr = new tbGroup_Proxy();
        tbUsers_Proxy pruser = new tbUsers_Proxy();
        void show_GroupId()
        {
            List<tbGroup> dt = new List<tbGroup>();
            dt = pr.SelectAlltbGroup_Proxy();
            this.drGroupId.DataSource = dt;
            this.drGroupId.DataTextField = "GroupName";
            this.drGroupId.DataValueField = "GroupID";
            this.drGroupId.DataBind();
            dt.Clear();
            dt = null;
        }
        void show_UserID()
        {
            List<tbUsers> dt = new List<tbUsers>();
            dt = pruser.SelectAlltbUsers_Proxy();
            this.drUserID.DataSource = dt;
            this.drUserID.DataTextField = "UserName";
            this.drUserID.DataValueField = "UserID";
            this.drUserID.DataBind();
            dt.Clear();
            dt = null;
        }
       
    }
}